<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title></title>
    <script>
    let arr = [2,54,34,1,46,5,7];

    let sum = 0;

    arr.forEach(item=>{
        sum += item;
    })
    alert(sum);
    </script>
  </head>
  <body>

  </body>
</html>
